package com.zhiyou.app.pojo.vo;

import cn.hutool.core.date.DateUtil;
import com.zhiyou.app.pojo.enums.WalletTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Data
@ApiModel("钱包流水明细")
public class WalletDetailRequestVo extends PageRequestVo{
    @ApiModelProperty(value = "钱包ID")
    private Integer userId;

    @ApiModelProperty(value = "钱包类型")
    private WalletTypeEnum walletType = WalletTypeEnum.USER;
    /**
     * 内容描述
     */
    @ApiModelProperty(value = "内容描述")
    private String content;
    /**
     * 流水金额
     */
    @ApiModelProperty(value = "流水金额")
    private Integer minAmount = 0;

    @ApiModelProperty(value = "流水金额")
    private Integer maxAmount = 0;

    @ApiModelProperty(value = "交易开始时间")
    private Date minTradingTime = DateUtil.offsetDay(new Date(), -7);

    @ApiModelProperty(value = "交易结束时间")
    private Date maxTradingTime = new Date();
}
